import string
pw = input()
sz = ''
xx= ''
dx = ''
ts = ''
cd = ''
if len(pw) >= 8:
  cd = 'True'
for i in pw:
  if i in string.digits:
    sz = 'True'
  if i in string.ascii_lowercase:
    xx = 'True'
  if i in string.ascii_uppercase:
    dx = 'True'
  if i in string.punctuation:
    ts = 'True'
qd = sz+xx+dx+ts
if cd != 'True':
  print('弱')
if qd.count('True')==2 and cd == 'True':
  print('中')
if qd.count('True')==3 and cd == 'True': 
  print('强')
if qd.count('True')==4 and cd == 'True':
  print('极强')